package utils;

import java.util.Map;

public class RequestOpt {
	 public static String doGet(String uri, Map<String,Object> param){
		int i=0;
		String result = null;
		while(result == null && i<3 ){
			 try {
				 result = HttpClientUtils.doGet(uri, param);
			} catch (Exception e) {
				i++;
			}
		}
		return result;
	 }
	 public static String doPost(String uri, Map<String,Object> param){
		int i=0;
		String result = null;
		while(result == null && i<3 ){
			 try {
				 result = HttpClientUtils.doPost(uri, param);
			} catch (Exception e) {
				i++;
			}
		}
		return result;
	 }
}
